.class public Lcom/bandai/games/api/SdkShell;
.super Ljava/lang/Object;


# static fields
.field private static final XUjhy:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    const/16 v0, 0x2ab

    const/16 v1, 0x10

    invoke-static {v0, v1}, Lcom/bandai/games/api/RpPrM;->xMWrZ(II)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/bandai/games/api/SdkShell;->XUjhy:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .locals 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/bandai/games/api/SdkShell;->TwFkH([BI)[B

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/bandai/games/api/OBbpg;->gKcmI(Ljava/lang/String;)V

    return-void
.end method

.method public static TwFkH([BI)[B
    .locals 6

    const/4 v1, 0x0

    if-nez p0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    div-int/lit8 v0, p1, 0x2

    new-array v5, v0, [B

    move v0, v1

    move v2, v1

    :goto_1
    add-int/lit8 v3, p1, 0x1

    div-int/lit8 v3, v3, 0x2

    if-ge v0, v3, :cond_2

    add-int/lit8 v3, v2, 0x1

    aget-byte v2, p0, v2

    invoke-static {v2}, Lcom/bandai/games/api/SdkShell;->wZJZW(B)B

    move-result v2

    aput-byte v2, v5, v0

    if-lt v3, p1, :cond_1

    move v2, v3

    move v3, v1

    :goto_2
    aget-byte v4, v5, v0

    shl-int/lit8 v4, v4, 0x4

    add-int/2addr v3, v4

    int-to-byte v3, v3

    aput-byte v3, v5, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_1
    add-int/lit8 v4, v3, 0x1

    aget-byte v2, p0, v3

    invoke-static {v2}, Lcom/bandai/games/api/SdkShell;->wZJZW(B)B

    move-result v2

    move v3, v2

    move v2, v4

    goto :goto_2

    :cond_2
    move-object v0, v5

    goto :goto_0
.end method

.method public static VzSXW([B)Ljava/lang/String;
    .locals 3

    if-nez p0, :cond_0

    const-string v0, ""

    :goto_0
    return-object v0

    :cond_0
    new-instance v1, Ljava/lang/StringBuffer;

    array-length v0, p0

    mul-int/lit8 v0, v0, 0x2

    invoke-direct {v1, v0}, Ljava/lang/StringBuffer;-><init>(I)V

    const/4 v0, 0x0

    :goto_1
    array-length v2, p0

    if-ge v0, v2, :cond_1

    aget-byte v2, p0, v0

    invoke-static {v1, v2}, Lcom/bandai/games/api/SdkShell;->xheEA(Ljava/lang/StringBuffer;B)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_1
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public static swLIL()Ljava/lang/Object;
    .locals 2

    const/16 v0, 0x2a1

    const/4 v1, 0x7

    invoke-static {v0, v1}, Lcom/bandai/games/api/RpPrM;->xMWrZ(II)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    invoke-static {v0}, Lcom/bandai/games/api/SdkShell;->VzSXW([B)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static tLhez()Ljava/lang/Object;
    .locals 2

    const/16 v0, 0x2a8

    const/4 v1, 0x3

    invoke-static {v0, v1}, Lcom/bandai/games/api/RpPrM;->xMWrZ(II)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    invoke-static {v0}, Lcom/bandai/games/api/SdkShell;->VzSXW([B)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static wZJZW(B)B
    .locals 1

    const/16 v0, 0x30

    if-lt p0, v0, :cond_0

    const/16 v0, 0x39

    if-gt p0, v0, :cond_0

    add-int/lit8 v0, p0, -0x30

    int-to-byte v0, v0

    :goto_0
    return v0

    :cond_0
    const/16 v0, 0x41

    if-lt p0, v0, :cond_1

    const/16 v0, 0x46

    if-gt p0, v0, :cond_1

    add-int/lit8 v0, p0, -0x41

    add-int/lit8 v0, v0, 0xa

    int-to-byte v0, v0

    goto :goto_0

    :cond_1
    const/16 v0, 0x61

    if-lt p0, v0, :cond_2

    const/16 v0, 0x66

    if-gt p0, v0, :cond_2

    add-int/lit8 v0, p0, -0x61

    add-int/lit8 v0, v0, 0xa

    int-to-byte v0, v0

    goto :goto_0

    :cond_2
    add-int/lit8 v0, p0, -0x30

    int-to-byte v0, v0

    goto :goto_0
.end method

.method private static xheEA(Ljava/lang/StringBuffer;B)V
    .locals 3

    sget-object v0, Lcom/bandai/games/api/SdkShell;->XUjhy:Ljava/lang/String;

    shr-int/lit8 v1, p1, 0x4

    and-int/lit8 v1, v1, 0xf

    invoke-virtual {v0, v1}, Ljava/lang/String;->charAt(I)C

    move-result v0

    invoke-virtual {p0, v0}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move-result-object v0

    sget-object v1, Lcom/bandai/games/api/SdkShell;->XUjhy:Ljava/lang/String;

    and-int/lit8 v2, p1, 0xf

    invoke-virtual {v1, v2}, Ljava/lang/String;->charAt(I)C

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    return-void
.end method


# virtual methods
.method public native add([Ljava/lang/Object;)I
.end method

.method public native free([Ljava/lang/Object;)Ljava/lang/Object;
.end method
